import store from '@/store'
import request from '@/utils/request'

export const editorUserMethod = () => {
  return request({
    method: 'post',
    url: '/user/update',
    data: {
      id: store.state.user.id,
      username: store.state.user.username,
      password: store.state.user.password,
      age: store.state.user.age,
      gender: store.state.user.gender,
      dsc: store.state.user.dsc
    }

  })
}
